<?php

/**
 * @package     Joomla.Site
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

// Create shortcuts to some parameters.
$params  = $this->item->params;
$images  = json_decode($this->item->images);
$urls    = json_decode($this->item->urls);
$canEdit = $params->get('access-edit');
$user    = JFactory::getUser();
$info    = $params->get('info_block_position', 0);
JHtml::_('behavior.caption');
//echo "<pre>";print_r($images);exit;
$arr_key = array("{nameproject}","{img_thumb_project}");
$arr_replace = array($this->item->title,$images->image_intro);
str_replace("{nameproject}","abc",$this->item->introtext);
?>
<!-------------------------------------------------------------------------------------------------------------------------->




<?php $path = JURI::root()."components/com_webteam"; ?>
<!--<link rel="stylesheet" href="<?php //echo $path;?>/assets/css/jquery.mCustomScrollbar.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="<?php //echo $path;?>/assets/js/jquery.mCustomScrollbar.concat.min.js"></script>-->
<script>
/*			
(function($){
			$(window).load(function(){
				
				$("#p_nested").mCustomScrollbar({
					axis:"yx",
					theme:"3d",
					scrollInertia:550,
					scrollbarPosition:"outside"
				});
				
			});
		})(jQuery);
*/		
</script>
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<div class="wrap_portfolio detail_project">

<div class="span3 wpl">
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="Table_01">
<tbody>
<tr>
<td align="center" class="tdimgthumbproject">
<img width="240" height="240" class="img_thumb_detail" src="<?php echo $images->image_intro; ?>" />
<span class="border_thumb border_thumb_detail"></span>
</td>
</tr>
<tr><td>
<h5 class="project"><?php echo $this->item->title; ?></h5>
</td></tr>
</tbody>
</table>
<?php echo $this->item->introtext; ?>
<?php //echo $this->item->pagination; ?>
</div>
<div id="p_nested" class="span9 wpr nested c_nested">

<?php echo $this->item->fulltext; ?>

</div><!--end div.span9-->

</div>
</div>
<!-------------------------------------------------------------------------------------------------------------------------->
<div class="item-page<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="http://schema.org/Article">
	<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? JFactory::getConfig()->get('language') : $this->item->language; ?>" />
	
	
	<?php 
if (!empty($this->item->pagination) && $this->item->pagination && !$this->item->paginationposition && $this->item->paginationrelative)
{
	echo $this->item->pagination;
}
?>


	<?php if (!$params->get('show_intro')) : echo $this->item->event->afterDisplayTitle; endif; ?>
	

	<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position)))
		|| (empty($urls->urls_position) && (!$params->get('urls_position')))) : ?>
	<?php echo $this->loadTemplate('links'); ?>
	<?php endif; ?>
	<?php if ($params->get('access-view')):?>
	<?php if (isset($images->image_fulltext) && !empty($images->image_fulltext)) : ?>
	<?php $imgfloat = (empty($images->float_fulltext)) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
	<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img
	<?php if ($images->image_fulltext_caption):
		echo 'class="caption"'.' title="' .htmlspecialchars($images->image_fulltext_caption) . '"';
	endif; ?>
	src="<?php echo htmlspecialchars($images->image_fulltext); ?>" alt="<?php echo htmlspecialchars($images->image_fulltext_alt); ?>" itemprop="image"/> </div>
	<?php endif; ?>
	
	<?php endif; ?>
	</div>
